package com.xiaodu.acer.phoneplay.presenter.contract;

import com.xiaodu.acer.phoneplay.bean.LoginBean;


import io.reactivex.Observable;
import library.base.BaseBean;
import library.base.BaseModel;
import library.base.BaseView;

/**
 * @author 小杜
 *         邮箱:m15701207383@163.com
 * @version V1.0
 * @Description: ${TODO}(用一句话描述该文件做什么)
 * @date 2018/1/10 13:34
 */

public interface LoginContract {

    interface View extends BaseView {
        //手机号错误
        void checkPhoneError();

        //手机号正确
        void checkPhoneSuccess();

        //登录成功
        void loginSuccess(LoginBean bean);

    }

    interface Model extends BaseModel {
        Observable<BaseBean<LoginBean>> getLogin(String phone, String pwd);
    }
}
